package GenericNRMSystem;
/**
 * Generated from IDL enum "AdministrativeStateType".
 *
 * @author JacORB IDL compiler V 2.3.0, 17-Feb-2007
 * @version generated at 2013-5-20 22:07:19
 */

public final class AdministrativeStateType
	implements org.omg.CORBA.portable.IDLEntity
{
	private int value = -1;
	public static final int _LOCKED = 0;
	public static final AdministrativeStateType LOCKED = new AdministrativeStateType(_LOCKED);
	public static final int _UNLOCKED = 1;
	public static final AdministrativeStateType UNLOCKED = new AdministrativeStateType(_UNLOCKED);
	public static final int _SHUTTING_DOWN = 2;
	public static final AdministrativeStateType SHUTTING_DOWN = new AdministrativeStateType(_SHUTTING_DOWN);
	public int value()
	{
		return value;
	}
	public static AdministrativeStateType from_int(int value)
	{
		switch (value) {
			case _LOCKED: return LOCKED;
			case _UNLOCKED: return UNLOCKED;
			case _SHUTTING_DOWN: return SHUTTING_DOWN;
			default: throw new org.omg.CORBA.BAD_PARAM();
		}
	}
	public String toString()
	{
		switch (value) {
			case _LOCKED: return "LOCKED";
			case _UNLOCKED: return "UNLOCKED";
			case _SHUTTING_DOWN: return "SHUTTING_DOWN";
			default: throw new org.omg.CORBA.BAD_PARAM();
		}
	}
	protected AdministrativeStateType(int i)
	{
		value = i;
	}
	java.lang.Object readResolve()
	throws java.io.ObjectStreamException
	{
		return from_int(value());
	}
}
